<include file="Public/sui_header" />
<volist name="list" id="vo">
    <div class="card">
        <div class="card-header">
            <span class="icon icon-star"></span> {$vo['name']}
        </div>
        <div class="card-content">
            <div class="card-content-inner">
                <div class="row">
                    <div class="col-20" style="width:30%">
                        <img class="list-img" src="__PUBLIC__/file/{$vo['user']['photo']}" />
                    </div>
                    <div class="col-50" style="width:60%">
                        开始时间：{$vo['start_time']|date="Y-m-d", ###}
                        <br/> 结束时间：{$vo['end_time']|date="Y-m-d", ###}
                        <br/> 价格：￥{$vo['price']}/天
                        <br/> 总价格：￥{$vo['amount']}
                        <br/> 订单状态：{$vo['state']}
                    </div>
                </div>
            </div>
        </div>
        <php>
        $guider = D ('User')->find($vo['guider_user_id']);
        </php>
        <div class="card-footer">
            <a href="{:U('Guider/detail', ['id'=>$vo['user']['id']])}" class="button"><span class="icon icon-star"></span> 导游</a>
            <a href="tel:{$guider['username']}" class="button"><span class="icon icon-phone"></span> 联系</a>
            <if condition="$vo['state'] neq '待导游处理'">
                <a href="{:U('Guider/contract', ['id'=>$vo['id']])}" class="button"><span class="fa fa-file-text-o"></span> 合同</a>
            </if>
            <if condition="$vo['state'] eq '待支付'">
                <a href="{:U('Guider/pay', ['id'=>$vo['id']])}" class="button"><span class="fa fa-cc-paypal"></span> 支付</a>
            </if>
            <if condition="$vo['state'] eq '待评价'">
                <a href="{:U('Guider/comment', ['id'=>$vo['id']])}" class="button"><span class="fa fa-thumbs-o-up"></span> 评价</a>
            </if>
            <if condition="$vo['state'] eq '已完成'">
                <a href="{:U('Guider/complaint', ['id'=>$vo['id']])}" class="button"><span class="fa fa-thumbs-o-down"></span> 投诉</a>
            </if>
        </div>
    </div>
</volist>
{$page}
<include file="Public/sui_footer" />
